package action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;

public class CloseActionListener implements ActionListener
{
	
	private JFrame frame;
	public CloseActionListener (JFrame frame){
		super();
		this.frame = frame;
	}
	@Override
	public void actionPerformed(ActionEvent e) {
		frame.dispose();
		
	}
	
}
